const templates = {
  input: {
    type: 'input',
    attrs: {},
    extendAttrs: {},
    properties: {
      key: 'unname{i}',
      dbName: 'unname{i}',
      label: '未命名{i}',
      allowClear: '1',
      placeholder: null,
      required: '0',
      min: 0,
      max: 50,
      size: 'middle',
      disabled: '0',
      colon: '1',
      displayTitle: '1'
    }
  },
  iconSelect: {
    type: 'iconSelect',
    attrs: {},
    extendAttrs: {},
    properties: {
      key: 'unname{i}',
      label: '未命名{i}',
      placeholder: null,
      required: '0',
      min: 0,
      max: 50,
      size: 'middle',
      disabled: '0',
      colon: '1',
      displayTitle: '1'
    }
  },
  rate: {
    type: 'rate',
    attrs: {},
    extendAttrs: {},
    properties: {
      key: 'unname{i}',
      label: '未命名{i}',
      placeholder: null,
      required: '0',
      size: 'middle',
      disabled: '0',
      allowClear: '0',
      starCount: 5,
      icon: 'star-outlined',
      allowHalf: '0',
      colon: '1',
      displayTitle: '1'
    }
  },
  province: {
    type: 'province',
    attrs: {},
    extendAttrs: {},
    properties: {
      key: 'unname{i}',
      label: '未命名{i}',
      allowClear: '1',
      placeholder: null,
      required: '0',
      min: 0,
      max: 50,
      size: 'middle',
      disabled: '0',
      colon: '1',
      displayTitle: '1'
    }
  },
  textarea: {
    type: 'textarea',
    attrs: {},
    extendAttrs: {},
    properties: {
      key: 'unname{i}',
      label: '未命名{i}',
      allowClear: '1',
      placeholder: null,
      required: '0',
      min: 0,
      max: 50,
      size: 'big',
      rowNum: 4,
      disabled: '0',
      colon: '1',
      displayTitle: '1'
    }
  },
  datetime: {
    type: 'datetime',
    attrs: {},
    extendAttrs: {},
    properties: {
      key: 'unname{i}',
      label: '未命名{i}',
      allowClear: '1',
      placeholder: null,
      required: '0',
      size: 'middle',
      disabled: '0',
      dateType: 'date',
      dateFormat: 'YYYY-MM-DD',
      showTime: '0',
      colon: '1',
      displayTitle: '1'
    }
  },
  img: {
    type: 'img',
    attrs: {},
    extendAttrs: {},
    properties: {
      key: 'unname{i}',
      label: '未命名{i}',
      allowClear: '1',
      placeholder: null,
      required: '0',
      maxValue: 3,
      size: 'middle',
      disabled: '0',
      colon: '1',
      displayTitle: '1'
    }
  },
  file: {
    type: 'file',
    attrs: {},
    extendAttrs: {},
    properties: {
      key: 'unname{i}',
      label: '未命名{i}',
      allowClear: '1',
      placeholder: null,
      required: '0',
      maxValue: 3,
      size: 'middle',
      disabled: '0',
      colon: '1',
      displayTitle: '1'
    }
  },
  inputNumber: {
    type: 'inputNumber',
    attrs: {},
    extendAttrs: {},
    properties: {
      key: 'unname{i}',
      label: '未命名{i}',
      allowClear: '1',
      placeholder: null,
      required: '0',
      size: 'middle',
      disabled: '0',
      colon: '1',
      displayTitle: '1'
    }
  },
  select: {
    type: 'select',
    attrs: {},
    extendAttrs: {},
    properties: {
      key: 'unname{i}',
      label: '未命名{i}',
      allowClear: '1',
      placeholder: null,
      required: '0',
      size: 'middle',
      dictType: '3',
      dictData: [
        { label: '男', value: '1' },
        { label: '女', value: '2' }
      ],
      search: '1',
      mode: '1',
      disabled: '0',
      colon: '1',
      displayTitle: '1'
    }
  },
  transfer: {
    type: 'transfer',
    attrs: {},
    extendAttrs: {},
    properties: {
      key: 'unname{i}',
      label: '未命名{i}',
      required: '0',
      size: 'big',
      dictType: '3',
      dictData: [
        { label: '男', value: '1' },
        { label: '女', value: '2' }
      ],
      disabled: '0',
      colon: '1',
      displayTitle: '1'
    }
  },
  selectTree: {
    type: 'selectTree',
    attrs: {},
    extendAttrs: {},
    properties: {
      key: 'unname{i}',
      label: '未命名{i}',
      allowClear: '1',
      placeholder: null,
      required: '0',
      size: 'middle',
      dictType: '1',
      checkChildren: '1',
      dictCode: 'TEST',
      mode: '1',
      expand: '1',
      disabled: '0',
      colon: '1',
      displayTitle: '1'
    }
  },
  tree: {
    type: 'tree',
    attrs: {},
    extendAttrs: {},
    properties: {
      key: 'unname{i}',
      label: '未命名{i}',
      required: '0',
      size: 'middle',
      dictType: '1',
      checkChildren: '1',
      dictCode: 'TEST',
      expand: '1',
      disabled: '0',
      colon: '1',
      displayTitle: '1'
    }
  },
  cascader: {
    type: 'cascader',
    attrs: {},
    extendAttrs: {},
    properties: {
      key: 'unname{i}',
      label: '未命名{i}',
      allowClear: '1',
      placeholder: null,
      required: '0',
      size: 'middle',
      dictType: '1',
      dictCode: 'TEST',
      disabled: '0',
      colon: '1',
      displayTitle: '1'
    }
  },
  radio: {
    type: 'radio',
    attrs: {},
    extendAttrs: {},
    properties: {
      key: 'unname{i}',
      label: '未命名{i}',
      required: '0',
      size: 'middle',
      dictType: '3',
      dictData: [
        { label: '男', value: '1' },
        { label: '女', value: '2' }
      ],
      disabled: '0',
      colon: '1',
      displayTitle: '1'
    }
  },
  switch: {
    type: 'switch',
    attrs: {},
    extendAttrs: {},
    properties: {
      key: 'unname{i}',
      label: '未命名{i}',
      required: '0',
      size: 'middle',
      trueValue: '1',
      falseValue: '0',
      disabled: '0',
      colon: '1',
      displayTitle: '1'
    }
  },
  checkbox: {
    type: 'checkbox',
    attrs: {},
    extendAttrs: {},
    properties: {
      key: 'unname{i}',
      label: '未命名{i}',
      required: '0',
      size: 'middle',
      dictType: '3',
      dictData: [
        { label: '男', value: '1' },
        { label: '女', value: '2' }
      ],
      disabled: '0',
      colon: '1',
      displayTitle: '1'
    }
  },
  divider: {
    type: 'divider',
    attrs: {},
    extendAttrs: {},
    properties: {
      orientation: 'left',
      dashed: '0',
      label: '未命名{i}'
    }
  },
  card: {
    type: 'card',
    attrs: {},
    extendAttrs: {},
    properties: {
      bordered: '0',
      label: '未命名{i}',
      orientation: 'left',
      height: '280px'
    }
  },
  tab: {
    type: 'tab',
    attrs: {},
    extendAttrs: {},
    properties: {
      tabs: '未命名{i}',
      tabPosition: 'top',
      type: 'card',
      size: 'default',
      height: '330px'
    }
  },
  colorPicker: {
    type: 'colorPicker',
    attrs: {},
    extendAttrs: {},
    properties: {
      key: 'unname{i}',
      label: '未命名{i}',
      required: '0',
      size: 'middle',
      disabled: '0',
      colon: '1',
      displayTitle: '1',
      enablePicker: '1',
      dictData: [
        {
          title: '拂晓蓝',
          color: '#1890FF'
        },
        {
          title: '薄暮',
          color: '#F5222D'
        },
        {
          title: '火山',
          color: '#FA541C'
        },
        {
          title: '日暮',
          color: '#FAAD14'
        },
        {
          title: '明青',
          color: '#13C2C2'
        },
        {
          title: '极光绿',
          color: '#52C41A'
        },
        {
          title: '极客蓝',
          color: '#2F54EB'
        },
        {
          title: '酱紫',
          color: '#722ED1'
        }
      ]
    }
  },
  slider: {
    type: 'slider',
    attrs: {},
    extendAttrs: {},
    properties: {
      key: 'unname{i}',
      label: '未命名{i}',
      required: '0',
      min: 0,
      max: 100,
      size: 'middle',
      disabled: '0',
      colon: '1',
      displayTitle: '1',
      step: 1,
      range: '0',
      orientation: '1',
      dot: '0'
    }
  },
  tag: {
    type: 'tag',
    attrs: {},
    extendAttrs: {},
    properties: {
      key: 'unname{i}',
      label: '未命名{i}',
      required: '0',
      size: 'middle',
      disabled: '0',
      colon: '1',
      displayTitle: '1'
    }
  }
}
const components = [
  {
    value: 'input',
    label: '输入框',
    icon: 'ext-icon-m-shurukuang'
  },
  {
    value: 'textarea',
    label: '文本域',
    icon: 'ext-icon-wenbenyu'
  },
  {
    value: 'inputNumber',
    label: '数字输入',
    icon: 'ext-icon-fuhao-shuzishurukuang'
  },
  {
    value: 'iconSelect',
    label: '图标选择',
    icon: 'info-circle-outlined'
  },
  {
    value: 'select',
    label: '下拉列表',
    icon: 'ext-icon-xiala'
  },
  {
    value: 'province',
    label: '省市区',
    icon: 'ext-icon-B-shengshiqu'
  },
  {
    value: 'radio',
    label: '单选框',
    icon: 'ext-icon-xuanzekuang3'
  },
  {
    value: 'checkbox',
    label: '多选框',
    icon: 'ext-icon-xuanzekuang'
  },
  {
    value: 'switch',
    label: '开关',
    icon: 'ext-icon-gongyezujian-kaiguan'
  },
  {
    value: 'rate',
    label: '评分',
    icon: 'star-outlined'
  },
  {
    value: 'cascader',
    label: '级联选择',
    icon: 'ext-icon-11fuhao-jilianxuanze'
  },
  {
    value: 'selectTree',
    label: '下拉树',
    icon: 'ext-icon-xialashu'
  },
  {
    value: 'datetime',
    label: '日期选择',
    icon: 'ext-icon-riqi'
  },
  {
    value: 'img',
    label: '图片上传',
    icon: 'ext-icon-tupian'
  },
  {
    value: 'file',
    label: '文件上传',
    icon: 'ext-icon-wenjianjia_o'
  },
  {
    value: 'divider',
    label: '分割线',
    icon: 'ext-icon-fengexian'
  },
  {
    value: 'card',
    label: '卡片',
    icon: 'ext-icon-qiapian'
  },
  {
    value: 'tab',
    label: '标签页',
    icon: 'ext-icon-a-ziyuan8'
  },
  {
    value: 'slider',
    label: '滑块',
    icon: 'ext-icon-huakuai'
  },
  {
    value: 'tag',
    label: '标签',
    icon: 'ext-icon-tags'
  },
  {
    value: 'transfer',
    label: '穿梭框',
    icon: 'ext-icon-m-chuansuokuang'
  },
  {
    value: 'tree',
    label: '树选择',
    icon: 'ext-icon-shuzhuangtu_o'
  },
  {
    value: 'colorPicker',
    label: '颜色选择',
    icon: 'ext-icon-yansexuanzeqi'
  }
]
export { templates, components }
